package com.globallogic.vkulyk.SSHTool;

import java.util.*;

public class SocketsAndActionsDataKeeper {
	private List<SocketDataKeeper> sockets;
	private List<ActionDataKeeper> actions;
	
	public SocketsAndActionsDataKeeper (List<SocketDataKeeper> sockets, List<ActionDataKeeper> actions) {
		this.sockets = sockets;
		this.actions = actions;
	}

	public List<SocketDataKeeper> getSockets() {
		return sockets;
	}

	public List<ActionDataKeeper> getActions() {
		return actions;
	}
	
	public int hashCode() {
		return sockets.hashCode() + actions.hashCode();
	}

	public boolean equals(Object thatObj) {
		if (this == thatObj) return true;
		return thatObj instanceof SocketsAndActionsDataKeeper
				&& sockets.equals(((SocketsAndActionsDataKeeper) thatObj).getSockets())
				&& actions.equals(((SocketsAndActionsDataKeeper) thatObj).getActions());
	}
	
	public String toString() {
		return sockets.toString() + " " + actions.toString();
	}

}
